package com.zbkj.common.response;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户积分记录响应对象
 * +----------------------------------------------------------------------
 * | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
 * +----------------------------------------------------------------------
 * | Copyright (c) 2016~2022 https://www.crmeb.com All rights reserved.
 * +----------------------------------------------------------------------
 * | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
 * +----------------------------------------------------------------------
 * | Author: CRMEB Team <admin@crmeb.com>
 * +----------------------------------------------------------------------
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="UserIntegralDetailResponse对象", description="用户积分细节响应对象")
public class UserIntegralDetailResponse implements Serializable {

    private static final long serialVersionUID=1L;


//      `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '记录id',
//  `uid` INT(10) UNSIGNED NOT NULL COMMENT '用户id',
//  `integral_type` INT(1) NOT NULL DEFAULT 0 COMMENT '积分类型：0：增值积分 ，1：绿色积分，2：贡献值， 3：余额 ， 4：cb基金',
//  `change_type` INT(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '变化值类型：0：增加 1：减少',
//  `reason` VARCHAR(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '原因',
//  `update_time` TIMESTAMP(0) NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',

    @ApiModelProperty(value = "记录id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户uid")
    private Integer uid;

// `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '记录id',
//  `uid` INT(10) UNSIGNED NOT NULL COMMENT '用户id',
//  `integral_type` INT(1) NOT NULL DEFAULT 0 COMMENT '积分类型：0：增值积分 ，1：绿色积分，2：贡献值， 3：余额 ， 4：cb基金',
//  `change_type` INT(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '变化值类型：0：增加 1：减少',
//  `reason` VARCHAR(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '原因',
//  `update_time` TIMESTAMP(0) NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间',

    @ApiModelProperty(value = "积分类型")
    private String integralType;

    @ApiModelProperty(value = "变化值类型:增加/减少")
    private Integer changeType;

    @ApiModelProperty(value = "原因")
    private String reason;

    @ApiModelProperty(value = "积分变化值")
    private BigDecimal value;

    @ApiModelProperty(value = "积分剩余值")
    private BigDecimal remainder;
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "积分状态")
    private String status;



}
